package com.umbacos.udm.client.view;

import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.HasHorizontalAlignment;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.umbacos.udm.client.arch.HourGlass;
import com.umbacos.udm.client.arch.ModalDialogBox;

public class DownloadPopupView extends ModalDialogBox {


	public final HourGlass hourglass=new HourGlass(null);
	public Button btSubmit= new Button("Download");
	public Button btCancel= new Button("Cancel");
	public TextBox filename = new TextBox();
	
	public DownloadPopupView(){

		setText("Insert the URL to download:");

		VerticalPanel panel = new VerticalPanel();
		add(panel);
		
		HorizontalPanel hpButtons=new HorizontalPanel();
		hpButtons.add(btCancel);
		hpButtons.add(btSubmit);
		
		panel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);
		panel.setSpacing(10);
		panel.add(filename);
		panel.add(hpButtons);
	}

}
